package com.guofen.dao;

import com.guofen.pojo.SjqFlocculationProduceMaintenanceDay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqFlocculationProduceMaintenanceDayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqFlocculationProduceMaintenanceDay record);

    int insertSelective(SjqFlocculationProduceMaintenanceDay record);

    SjqFlocculationProduceMaintenanceDay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqFlocculationProduceMaintenanceDay record);

    int updateByPrimaryKey(SjqFlocculationProduceMaintenanceDay record);

    SjqFlocculationProduceMaintenanceDay getlatest(@Param("equipment_name") String equipment_name, @Param("maintenance_content") String maintenance_content);

    List<SjqFlocculationProduceMaintenanceDay> getlastByName(String equipment);

    List<SjqFlocculationProduceMaintenanceDay> getDailyRecords();

    List<SjqFlocculationProduceMaintenanceDay> selectAll();

    List<SjqFlocculationProduceMaintenanceDay> selectByDate(@Param("startDate") String startDate,
                                                   @Param("endDate") String endDate);
}